3.49 \(\int \cos ^7(a+b x) \sin ^2(a+b x) \, dx\)

Optimal. Leaf size=61 \[ -\frac{\sin ^9(a+b x)}{9 b}+\frac{3 \sin ^7(a+b x)}{7 b}-\frac{3 \sin ^5(a+b x)}{5 b}+\frac{\sin ^3(a+b x)}{3 b} \]

[Out]

Sin[a + b*x]^3/(3*b) - (3*Sin[a + b*x]^5)/(5*b) + (3*Sin[a + b*x]^7)/(7*b) - Sin[a + b*x]^9/(9*b)

________________________________________________________________________________________

Rubi [A]  time = 0.0430188, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {2564, 270} \[ -\frac{\sin ^9(a+b x)}{9 b}+\frac{3 \sin ^7(a+b x)}{7 b}-\frac{3 \sin ^5(a+b x)}{5 b}+\frac{\sin ^3(a+b x)}{3 b} \]

Antiderivative was successfully verified.

[In]

Int[Cos[a + b*x]^7*Sin[a + b*x]^2,x]

[Out]

Sin[a + b*x]^3/(3*b) - (3*Sin[a + b*x]^5)/(5*b) + (3*Sin[a + b*x]^7)/(7*b) - Sin[a + b*x]^9/(9*b)

Rule 2564

Int[cos[(e_.) + (f_.)*(x_)]^(n_.)*((a_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(a*f), Subst[Int[
x^m*(1 - x^2/a^2)^((n - 1)/2), x], x, a*Sin[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2] &&
 !(IntegerQ[(m - 1)/2] && LtQ[0, m, n])

Rule 270

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*(a + b*x^n)^p,
 x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0]

Rubi steps

\begin{align*} \int \cos ^7(a+b x) \sin ^2(a+b x) \, dx &=\frac{\operatorname{Subst}\left (\int x^2 \left (1-x^2\right )^3 \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \left (x^2-3 x^4+3 x^6-x^8\right ) \, dx,x,\sin (a+b x)\right )}{b}\\ &=\frac{\sin ^3(a+b x)}{3 b}-\frac{3 \sin ^5(a+b x)}{5 b}+\frac{3 \sin ^7(a+b x)}{7 b}-\frac{\sin ^9(a+b x)}{9 b}\\ \end{align*}

Mathematica [A]  time = 0.15612, size = 47, normalized size = 0.77 \[ \frac{\sin ^3(a+b x) (1389 \cos (2 (a+b x))+330 \cos (4 (a+b x))+35 \cos (6 (a+b x))+1606)}{10080 b} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[a + b*x]^7*Sin[a + b*x]^2,x]

[Out]

((1606 + 1389*Cos[2*(a + b*x)] + 330*Cos[4*(a + b*x)] + 35*Cos[6*(a + b*x)])*Sin[a + b*x]^3)/(10080*b)

________________________________________________________________________________________

Maple [A]  time = 0.039, size = 60, normalized size = 1. \begin{align*}{\frac{1}{b} \left ( -{\frac{\sin \left ( bx+a \right ) \left ( \cos \left ( bx+a \right ) \right ) ^{8}}{9}}+{\frac{\sin \left ( bx+a \right ) }{63} \left ({\frac{16}{5}}+ \left ( \cos \left ( bx+a \right ) \right ) ^{6}+{\frac{6\, \left ( \cos \left ( bx+a \right ) \right ) ^{4}}{5}}+{\frac{8\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}}{5}} \right ) } \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(b*x+a)^7*sin(b*x+a)^2,x)

[Out]

1/b*(-1/9*sin(b*x+a)*cos(b*x+a)^8+1/63*(16/5+cos(b*x+a)^6+6/5*cos(b*x+a)^4+8/5*cos(b*x+a)^2)*sin(b*x+a))

________________________________________________________________________________________

Maxima [A]  time = 0.99892, size = 62, normalized size = 1.02 \begin{align*} -\frac{35 \, \sin \left (b x + a\right )^{9} - 135 \, \sin \left (b x + a\right )^{7} + 189 \, \sin \left (b x + a\right )^{5} - 105 \, \sin \left (b x + a\right )^{3}}{315 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)^7*sin(b*x+a)^2,x, algorithm="maxima")

[Out]

-1/315*(35*sin(b*x + a)^9 - 135*sin(b*x + a)^7 + 189*sin(b*x + a)^5 - 105*sin(b*x + a)^3)/b

________________________________________________________________________________________

Fricas [A]  time = 1.98078, size = 142, normalized size = 2.33 \begin{align*} -\frac{{\left (35 \, \cos \left (b x + a\right )^{8} - 5 \, \cos \left (b x + a\right )^{6} - 6 \, \cos \left (b x + a\right )^{4} - 8 \, \cos \left (b x + a\right )^{2} - 16\right )} \sin \left (b x + a\right )}{315 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)^7*sin(b*x+a)^2,x, algorithm="fricas")

[Out]

-1/315*(35*cos(b*x + a)^8 - 5*cos(b*x + a)^6 - 6*cos(b*x + a)^4 - 8*cos(b*x + a)^2 - 16)*sin(b*x + a)/b

________________________________________________________________________________________

Sympy [A]  time = 22.2179, size = 88, normalized size = 1.44 \begin{align*} \begin{cases} \frac{16 \sin ^{9}{\left (a + b x \right )}}{315 b} + \frac{8 \sin ^{7}{\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{35 b} + \frac{2 \sin ^{5}{\left (a + b x \right )} \cos ^{4}{\left (a + b x \right )}}{5 b} + \frac{\sin ^{3}{\left (a + b x \right )} \cos ^{6}{\left (a + b x \right )}}{3 b} & \text{for}\: b \neq 0 \\x \sin ^{2}{\left (a \right )} \cos ^{7}{\left (a \right )} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)**7*sin(b*x+a)**2,x)

[Out]

Piecewise((16*sin(a + b*x)**9/(315*b) + 8*sin(a + b*x)**7*cos(a + b*x)**2/(35*b) + 2*sin(a + b*x)**5*cos(a + b
*x)**4/(5*b) + sin(a + b*x)**3*cos(a + b*x)**6/(3*b), Ne(b, 0)), (x*sin(a)**2*cos(a)**7, True))

________________________________________________________________________________________

Giac [A]  time = 1.23135, size = 73, normalized size = 1.2 \begin{align*} -\frac{\sin \left (9 \, b x + 9 \, a\right )}{2304 \, b} - \frac{5 \, \sin \left (7 \, b x + 7 \, a\right )}{1792 \, b} - \frac{\sin \left (5 \, b x + 5 \, a\right )}{160 \, b} + \frac{7 \, \sin \left (b x + a\right )}{128 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)^7*sin(b*x+a)^2,x, algorithm="giac")

[Out]

-1/2304*sin(9*b*x + 9*a)/b - 5/1792*sin(7*b*x + 7*a)/b - 1/160*sin(5*b*x + 5*a)/b + 7/128*sin(b*x + a)/b